package com.macro.pojos.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@TableName("tb_goods_sku_stock")
@ApiModel(value = "sku的库存表")
public class UiGoodsSkuStock {
    /**
     * 主键
     */
    @TableId(value = "id",type = IdType.AUTO)
    @ApiModelProperty(value = "主键id")
    private Integer id;

    /**
     * 商品货号
     */
    @ApiModelProperty(value = "商品货号")
    @TableField("goods_sn")
    private String goodsSn;

    /**
     * sku编码
     */
    @ApiModelProperty(value = "sku编码")
    @TableField("sku_code")
    private String skuCode;

    /**
     * 商品价格
     */
    @ApiModelProperty(value = "商品价格")
    @TableField("price")
    private java.math.BigDecimal price;

    /**
     * 库存
     */
    @ApiModelProperty(value = "库存")
    private Integer stock;

    /**
     * 库存预警
     */
    @ApiModelProperty(value = "库存预警")
    @TableField("low_stock")
    private Integer lowStock;

    /**
     * 商品销售属性，json格式
     */
    @ApiModelProperty(value = "商品销售属性，json格式(json数组)")
    @TableField("sp_data")
    private String spData;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    @TableField("created_time")
    private java.util.Date createdTime;

    /**
     * 更新时间
     */
    @ApiModelProperty(value = "更新时间")
    @TableField("updated_time")
    private java.util.Date updatedTime;

    /**
     * 删除 1是 0否
     */
    @ApiModelProperty(value = "删除 1是 0否")
    @TableField("is_deleted")
    private Integer isDeleted;


}
